<!--
	<div style="float: left; width: 133px; text-align: center;">
		<img src='widgets/launcher/images/camera-icon.png' id='icon_camera' border='0'> 
	</div>
	<div style="float: left; width: 133px; text-align: center;">
		<img src='widgets/launcher/images/phone-icon.png' id='icon_phone' border='0'> 
	</div>
	<div style="float: left; width: 133px; text-align: center;">
		<img src='widgets/launcher/images/popup-icon.png' id='icon_popup' border='0'>
	</div>
</div>
-->

<div id='launcherContentLyr' class='launcherContent'>
	<?php
	$workingDir = getcwd();
	$tok = strtok($workingDir, "/");
	$wwwDirCount = 0;
	$wwwDir = [];
	$wwwDirTxt = "/";
	while ($tok !== false) {
		array_push($wwwDir, $tok."/");
		$tok = strtok("/");
		$wwwDirCount++;
	}
	for ($i = 0; $i <= ($wwwDirCount - 3); $i++) {
		$wwwDirTxt .= $wwwDir[$i];
	}
	$wwwDirTxt .= "modules/";

	if ($handle = opendir($wwwDirTxt)) {
		$blacklist = array('.', '..', 'index.php', 'dashboard');
		while (false !== ($file = readdir($handle))) {
			if ((!in_array($file, $blacklist)) && (is_dir($wwwDirTxt.$file))) {
				$module_list[] = $file;
				$module_ico[] = file_get_contents($wwwDirTxt.$file."/".$file.".ico");
			}
		}
		closedir($handle);
		$total_module = count($module_list);
	}

	$z = 0;
	foreach ($module_list as $mod) {
		echo "<span style='width: 82px;  text-align: center; float: left; font-size: 180%; ' id='$mod'><i style='color: #4499dd' class='fa ".$module_ico[$z]."'><br><span style='font-size: 20%; color: #000; '>".$mod."</span></i></span>";
		$z++;
	}

echo "</div>";
?>


